package com.example.mapper;

import com.example.bean.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.until.UserUpdate;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
* @author wjf
* @description 针对表【sys_user】的数据库操作Mapper
* @createDate 2022-09-19 19:04:13
* @Entity com.example.bean.User
*/
@Repository
public interface UserMapper extends BaseMapper<User> {

    @Update("update sys_user set password=#{newPassword} where username=#{username}")
    int updatePassword(UserUpdate userUpdate);
}




